package com.core.family.biz.yizhao.domain.po;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * @author honglei
 * @version 1.0
 * @time: 2023-7-13 9:59:33
 * @Description PO对象 报价明细
 */
@Data
@TableName(value = "yz_price_item")
public class YzPriceItem implements Serializable {


        /*
        *
        */
        @TableField(value = "id")
        private Integer id;

        /*
        *  项目名
        */

        @NotNull(message = "项目名不能为空")
        @TableField(value = "name")
        private String name;

        /*
        *  数量
        */
        @NotNull(message = "数量不能为空")
        @TableField(value = "number")
        private Integer number;

        /*
        *  单价
        */
        @NotNull(message = "单价不能为空")
        @TableField(value = "price")
        private BigDecimal price;

        /*
        *
        */
        @TableField(value = "price_id")
        private Integer priceId;

        /*
        *  备注
        */

        @TableField(value = "remark")
        private String remark;

        /*
        *  总价
        */
        @NotNull(message = "总价不能为空")
        @TableField(value = "total_price")
        private BigDecimal totalPrice;

}
